/*
 * @Description:获取文件扩展名字
 * @Author: 小雨
 * @Date: 2024-06-25 15:34:47
 * @LastEditTime: 2024-06-25 15:34:50
 * @LastEditors: 小雨
 */

const path = require('path');

const pathname = '/c/v/b/d/index.html';

let extname = path.extname(pathname);

console.log(extname); //输出.html扩展名
